package be.rugbyclubleuven.rachel.dao;

import org.hibernate.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import be.rugbyclubleuven.rachel.domain.Ploeg;

/**
 * A service that offers the retrieval and persisting of all ploeg data.
 * 
 */
@Repository("ploegDAO")
public class PloegDAO extends GenericHibernateDAO<Ploeg, Long> {

	protected static final Logger LOGGER = LoggerFactory.getLogger(PloegDAO.class);

	/**
	 * Constructs a new ploeg DAO with the right session factory injected.
	 * @param sessionFactory The session factory implementation to be used in this DAO.
	 */
	@Autowired
	public PloegDAO(@Qualifier("rachelSessionFactory") SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
}